package org.gradle.springboot;

import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@EnableAutoConfiguration
@RequestMapping("/test")
@SpringBootApplication
public class StarterApp {
	
	@RequestMapping("studentMap.do")
	@ResponseBody
	public Map<String, String> getStudents() {
		Map<String, String> map = new HashMap<>();
		map.put("s1", "98");
		return map;
	}

	public static void main(String[] args) {
		SpringApplication.run(StarterApp.class, args);
	}

}
